﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="module-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.module_list" MasterPageFile="~/_console/_console.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    模块列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkUpload" runat="server" NavigateUrl="~/_console/core/module-upload.aspx">上传模块</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="form">
        <table>
            <tr>
                <td style="vertical-align: top">
                    <asp:Repeater ID="_ctlList" runat="server">
                        <HeaderTemplate>
                            <table>
                                <tr>
                                    <th>-
                                    </th>
                                    <th>Caption
                                    </th>
                                    <th>Name
                                    </th>
                                    <th>Package
                                    </th>
                                    <th>Version
                                    </th>
                                    <th>Type
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <span id="_ctlLabel" runat="server" visible='<%# IsSelected(Eval("Id")) %>'>已选择</span>
                                    <a id="_ctlLink" href='<%# Eval("Id","?id={0}") %>' runat="server" visible='<%# !IsSelected(Eval("Id")) %>'>选择</a>
                                </td>
                                <td>
                                    <%# Eval("Caption") %>
                                </td>
                                <td>
                                    <%# Eval("Name") %>
                                </td>
                                <td>
                                    <%# Eval("Package") %>
                                </td>
                                <td>
                                    <%# Eval("Version") %>
                                </td>
                                <td>
                                    <%# Eval("Type") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td style="width: 200px; vertical-align: top">
                    <h3>视图列表</h3>
                    <asp:Repeater ID="_ctlListView" runat="server">
                        <HeaderTemplate>
                            <ul style="width: 100%;">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li>
                                <b>
                                    <%# Eval("Caption") %>
                                </b>
                                <br />
                                <em>
                                    <%# Eval("Name") %>
                                </em>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
